package com.roc.steelend.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "kaiping_order")
public class KaipingOrder {
    @TableId(type = IdType.INPUT)
    @JsonSerialize(using = ToStringSerializer.class)
    private BigInteger kaipingOrderId;
    private Integer employeeId;
    private Integer kaipingguyId;
    private Integer warehouseId;
    private Integer     rawMaterial;
    private BigDecimal rawSpecification;
    private BigDecimal rawWeigh;
    private Integer paymentIsSettled;
    private BigDecimal money;
    private BigDecimal given;
    private Date processingTime;
    private Timestamp operateTime;
    private String remark;
    private Integer isReconciliation;
    @JsonSerialize(using = ToStringSerializer.class)
    private BigInteger reconciliationId;
    private Integer isWriteOff;
    private Integer isInvoice;
    private BigDecimal invoiceMoney;
    private Integer invoiceIsSettled;
    private Integer isTiaoPiao;
    @JsonSerialize(using = ToStringSerializer.class)
    private BigInteger tiaoPiaoId;
    private Integer moLingTou;

    @TableField(exist = false)
    private List<KaipingDetail> kaipingDetailList;
    @TableField(exist = false)
    private KaipingGuy kaipingGuy;
    @TableField(exist = false)
    private Employee employee;
    @TableField(exist = false)
    private SmallType   rawSmallType;
}
